<?php
/**
 * Created by PhpStorm.
 * User: Mak
 * Date: 2016/1/5
 * Time: 12:50
 */

namespace Home\Model;
use Think\Model;

class QxModel extends Model{
    protected $tableName="qx";

    public function getList() {
        $ret = $this->order('id asc')->select();
        return $ret;
    }

    public function del($id){
        $ret=$this->where("id=$id")->delete();
        return $ret;
    }

    public function getItem($id){
        $condition['id'] = $id;
        $ret = $this->where($condition)->find();
        return $ret;
    }


}